<%@page import="com.tubeonfire.util.DateHelper"%>
<%@page import="com.tubeonfire.entity.Feedback"%>
<%@page import="com.tubeonfire.model.admin.FeedbackModel"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	FeedbackModel model = new FeedbackModel();
	model.setPage(1);
	model.setLimit(5);
	model.prepareList(1);
%>
<ul class="msglist">
	<%
		if(model!=null&&model.getListResult().size()>0){
			for(Feedback obj : model.getListResult()){							
	%>
	<li class="message new">	
        <div class="msg">
            From: <a href="/admin/feedback/view?id=<%=obj.getId()%>"><%=obj.getName() %></a>&nbsp;<span><%=DateHelper.dateToString(obj.getDoc(), "MM/dd/yyyy hh:mm:ss") %></span>
            <a href="/admin/feedback/view?id=<%=obj.getId()%>" class="subject"><%=obj.getTitle() %></a>
            <p><a href="/admin/feedback/view?id=<%=obj.getId()%>"><%=obj.getEmail() %></a></p>
        </div>    
    </li>
    <%
			}
		}
    %>   
</ul>
<div class="msgmore"><a href="/admin/feedback/list?status=1">See All</a></div>